package com.xln.demo1;

/**
 * 程序入口：演示 People 与 Game 的基本使用。
 */
public class Main {
    /**
     * 程序主方法，创建人物并演示玩游戏流程。
     */
    public static void main(String[] args) {

        People people = new People();
        people.setAge(15);
        people.setName("xlr");
        people.jieshao();
//        people.chifan();
//        people.shuijiao();
        Game game = new Game();
        game.setNandu("难的");
        try {
            game.setGmname("穿越火线");
            people.peoplay(game);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

        System.out.println("Hello world!");
    }


}
